package com.san.hkhospital.mapper;

import com.san.hkhospital.entity.Room;
import com.san.hkhospital.entity.RoomExample;

import java.util.List;

import com.san.hkhospital.vo.RoomTableVo;
import org.apache.ibatis.annotations.Param;

/**
 * ClassName:RoomMapper
 * PackageName:com.san.hkhospital.mapper
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/13 19:26
 */


public interface RoomMapper {
    long countByExample(RoomExample example);

    int deleteByExample(RoomExample example);

    int deleteByPrimaryKey(Integer roomId);

    int insert(Room record);

    int insertSelective(Room record);

    List<Room> selectByExample(RoomExample example);

    Room selectByPrimaryKey(Integer roomId);

    int updateByExampleSelective(@Param("record") Room record, @Param("example") RoomExample example);

    int updateByExample(@Param("record") Room record, @Param("example") RoomExample example);

    int updateByPrimaryKeySelective(Room record);

    int updateByPrimaryKey(Room record);
    List<RoomTableVo> selectAll(@Param("sectionId") Integer sectionId);
}